@namespace Blazorise.Docs.Pages.Blog.UsingTheSelectComponent.Examples

<Row>
    <Column>
        <Field>
            <Select TValue="int" SelectedValueChanged="@(value => selectedEmployee = employeeData.First(emp => emp.Id == value))">
                @foreach ( var employee in employeeData )
                {
                    <SelectItem @key="employee.Id" Value="@employee.Id">@employee.Name</SelectItem>
                }
            </Select>
        </Field>
    </Column>
</Row>
<Row>
    <Column>
        Selected Employee is : @selectedEmployee.Name
    </Column>
</Row>

@code {
    public Employee selectedEmployee;
    public class Employee
    {
        public int Id { get; set; }
        public string Name { get; set; }
    }

    public List<Employee> employeeData;

    protected override void OnInitialized()
    {
        employeeData = new()
        {
            new (){ Id = 11500, Name = "John" },
            new (){ Id = 11566, Name = "Julia" },
            new (){ Id = 11612, Name = "Maria" },
            new (){ Id = 10989, Name = "Peter" }
        };
        selectedEmployee = employeeData.First();
        base.OnInitialized();
    }
}